﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using SqlMiM.ViewModel;
using SqlMiM.Common.Framework.Options;
using System.Diagnostics;

namespace SqlMiM.Views
{
    /// <summary>
    /// Interaction logic for OptionsView.xaml
    /// </summary>
    public partial class AboutView : Window
    {

        public AboutView()
        {
            InitializeComponent();


            this.Closed += new EventHandler(OptionsView_Closed);
        }

        /// <summary>
        /// Hack . Dont know how to do this in View Model
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void OptionsView_Closed(object sender, EventArgs e)
        {
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            this.Close();
        }

       
        private void AnyLink_Click(object sender, RoutedEventArgs e)
        {
            Hyperlink hl = (e.OriginalSource as Hyperlink);
            if (hl != null && hl.NavigateUri != null)
            {
                string navigateUri = hl.NavigateUri.ToString();
                Process.Start(new ProcessStartInfo(navigateUri));
                e.Handled = true;
            }
        }

       
    }
}
